package com.qfedu.video.utils;

import org.springframework.util.DigestUtils;

/**
 * @author yanzhenwei
 * @date 2021-07-13 15:58
 */
public class Md5Utils {

    public static String md5(String source){

        String s = DigestUtils.md5DigestAsHex(source.getBytes());
        String salt="laoyan";
        String random= s.substring(8,10);
        String  newStr= s+salt+random;
        return DigestUtils.md5DigestAsHex(newStr.getBytes());

    }
}
